Scope of Document

This document covers those htmlwidgets that are also on CRAN. The full list of these is available here: https://cran.r-project.org/web/packages/htmlwidgets/index.html

Currently covers:

Packages not yet on CRAN

These are pretty exciting but not on CRAN yet

https://github.com/ThomasSiegmund/D3TableFilter

What is htmlwidgets

A way to easily create bindings R bindings to existing JavaScript libraries, this document primarily considers the most established libraries utilising the htmlwidgets frameworks.

Creating Your Own

It is fairly easy, in fact here’s a guy that dedicated to build 1 htmlwidgets library a week for a whole year: http://www.buildingwidgets.com/blog/2015/1/2/can-i-commit

The following example allows us to create a GIF in the browser - which could be embedded into a Shiny app.

## Skipping install for github remote, the SHA1 (0434d23e) has not changed since last install.
##   Use `force = TRUE` to force installation
## Loading required package: htmltools

Recording Live ... (I'm editable)

Feel free to change me. Careful though it might be recorded in a GIF.

ready
Element to Record:
Frames Per Second:
Limit Frames:
Cores:
Ratio:
Quality:
Period Mode:
Fixed Width (Optional):

High Level Library Comparisons

Basic comparison of htmlwidgets libraries,

Chart Types

Generic Chart types:

note that “diagrams” means flowcharts and generic diagrams, for instance this periodic table created using rbokeh from http://hafen.github.io/rbokeh

Library URL Charts Scattergeo Choropleth Network Diagrams Time Series
Leaflet
dygraphs
Plotly
rbokeh

Explicit chart types

Support for Customisability

Can this section include notes on creating annotations etc, a la https://plot.ly/r/shapes/

Types of interactivity

## Warning in `[<-.factor`(`*tmp*`, thisvar, value = "<span class='glyphicon
## glyphicon-ok' aria-hidden='true'></span>"): invalid factor level, NA
## generated
Library URL Scroll Zoom Area Select.Zoom Panning Hover Shiny Click.Events
Leaflet NA
dygraphs unknown
Plotly devel branch
rbokeh unknown

Map Comparisons

What kind of maps?

rbokeh

Features

  • Rectangle Zoom

Geomaps

## 
##  # maps v3.1: updated 'world': all lakes moved to separate new #
##  # 'lakes' database. Type '?world' or 'news(package="maps")'.  #